//
//  FMSLib.h
//  FMS
//
//  Created by Steven on 11/2/13.
//  Copyright (c) 2013 QGSVN. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FMSLib : NSObject

+ (FMSLib *)shareClient;

- (void)getDomainInfo:(NSString *)virtualHost successs:(void (^)(NSMutableDictionary *response))successs failure:(void (^)(NSError *error))failure;

- (void)getCompanyId:(NSString *)virtualHost successs:(void (^)(NSMutableDictionary* response))successs failure:(void (^)(NSError *error))failure;

- (void)getTimeDurationSuccess:(void (^)(NSMutableDictionary *response))successs failure:(void (^)(NSError *error))failure;

- (void)checkPermissionUser:(NSString *)user auth:(NSString *)auth success:(void (^)(NSMutableDictionary * response))successs failure:(void (^)(NSError *error))failure;

//user account methods
- (void)getUserInfoAuthenticationUserEmail:(NSString *)userEmail password:(NSString *)password fromCompnay:(int)companyId success:(void (^)(NSMutableDictionary *response))successs failure:(void (^)(NSError *error))failure;

- (void)loginWithUser:(NSString *)userEmail password:(NSString *)password successs:(void (^)(NSMutableDictionary *response))successs failure:(void (^)(NSError *error))failure;

- (void)forgotPasswordEmail:(NSString *)userEmail successs:(void (^)(NSMutableDictionary *response))successs failure:(void (^)(NSError *error))failure;

- (void)getOwnerUserInfoByEmail:(NSString *)email success:(void (^)(NSMutableDictionary *response))successs failure:(void (^)(NSError *error))failure;
@end
